package com.ys.entity.business;

import javax.persistence.Table;


import java.util.Date;

import com.ys.entity.base.BaseEntity;

/**
*/
@Table(name="`ys_develop`", catalog="id")
public class YsDevelop extends BaseEntity<YsDevelop> {

	private Long id; // 主键ID
	private String asin; // 产品ASIN码
	private Integer stateAble; // 是否可开发，0初始化1可以2不可以
	private Integer stateAudit; // 审核状态
	private Integer stateFinish; // 完成状态，0未完成1已完成
	private Integer type; // 类型，见ENUM
	private Integer typeJudge; // 进一步判定类型，见ENUM
	private Date commitTime; // 提交时间
	private Date finishTime; // 完成时间
	private Integer status; // 
	private Date createTime; // 
	private Date updateTime; // 

	public Long getId() {
		return id;
	}
	public YsDevelop setId(Long id) {
		this.id = id;
		return this;
	}
	public String getAsin() {
		return asin;
	}
	public YsDevelop setAsin(String asin) {
		this.asin = asin;
		return this;
	}
	public Integer getStateAble() {
		return stateAble;
	}
	public YsDevelop setStateAble(Integer stateAble) {
		this.stateAble = stateAble;
		return this;
	}
	public Integer getStateAudit() {
		return stateAudit;
	}
	public YsDevelop setStateAudit(Integer stateAudit) {
		this.stateAudit = stateAudit;
		return this;
	}
	public Integer getStateFinish() {
		return stateFinish;
	}
	public YsDevelop setStateFinish(Integer stateFinish) {
		this.stateFinish = stateFinish;
		return this;
	}
	public Integer getType() {
		return type;
	}
	public YsDevelop setType(Integer type) {
		this.type = type;
		return this;
	}
	public Integer getTypeJudge() {
		return typeJudge;
	}
	public YsDevelop setTypeJudge(Integer typeJudge) {
		this.typeJudge = typeJudge;
		return this;
	}
	public Date getCommitTime() {
		return commitTime;
	}
	public YsDevelop setCommitTime(Date commitTime) {
		this.commitTime = commitTime;
		return this;
	}
	public Date getFinishTime() {
		return finishTime;
	}
	public YsDevelop setFinishTime(Date finishTime) {
		this.finishTime = finishTime;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YsDevelop setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YsDevelop setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YsDevelop setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YsDevelop ysDevelop(
		String asin,
		Integer stateAble,
		Integer stateAudit,
		Integer stateFinish,
		Integer type,
		Integer typeJudge,
		Date commitTime,
		Date finishTime,
		Integer status
			) {
		YsDevelop entity = new YsDevelop();
		entity.setAsin(asin);
		entity.setStateAble(stateAble);
		entity.setStateAudit(stateAudit);
		entity.setStateFinish(stateFinish);
		entity.setType(type);
		entity.setTypeJudge(typeJudge);
		entity.setCommitTime(commitTime);
		entity.setFinishTime(finishTime);
		entity.setStatus(status);
		return entity;
	}
}